<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Types
 *
 * @author ALI
 */
class Types {
    //put your code here
    public static $referenceClass = array(
        'MSG_STATUS'                    =>  1,
        'ENT_TYPE'                      =>  2,
        'CONN_STATUS'                   =>  3,
        'RESEARCH_STATUS'               =>  4,
        'RESEARCH_APPROVAL_STATUS'      =>  5,
        'EMAIL_FORMAT'                  =>  6,
        'COMMUNITY_MEMBER_TYPE'         =>  7,
        'COLLABORATION_REQUEST_STATUS'  =>  8,
        'RESEARCH_OBJECT_TYPE'          =>  9,
        'RESEARCH_SCOPE'                =>  10
    );

    public static $MSG_STATUS = array(
        'READ'      =>  1,
        'UNREAD'    =>  2,
        'DRAFT'     =>  3,
        'DELETED'   =>  4
    );

    public static $ENT_TYPE_STUDENT         = 'STUDENT';
    public static $ENT_TYPE_RESEARCHER      = 'RESEARCHER';
    public static $ENT_TYPE_GENERAL_USER    = 'GENERAL_USER';
    public static $ENT_TYPE_PROFESSOR       = 'PROFESSOR';
    public static $ENT_TYPE_DIRECTOR        = 'DIRECTOR';

    public static $ENT_TYPE = array(
        'STUDENT'       =>  5,
        'RESEARCHER'    =>  6,
        'GENERAL_USER'  =>  7,
        'PROFESSOR'     =>  8,
        'DIRECTOR'      =>  9
    );

    public static $CONN_STATUS = array(
        'APPROVED'              =>  10,
        'PENDING'               =>  11,
        'REJECTED'              =>  12,
        'AWAITING_FOR_APPROVAL' =>  13
    );

    public static $APP_MSG_TYPE = array(
        'ERROR'         =>  1,
        'INFORMATION'   =>  2,
        'WARNING'       =>  3
    );

    public static $RSTATUS_PUBLISHED = 'PUBLISHED';
    public static $RSTATUS_UNPUBLISHED = 'UNPUBLISHED';

    public static $RESEARCH_STATUS = array(
        'PUBLISHED'     =>  14,
        'UNPUBLISHED'   =>  15
    );


    public static $RESEARCH_SCOPE_PRIVATE = 'PRIVATE';
    public static $RESEARCH_SCOPE_PUBLIC = 'PUBLIC';
    public static $RESEARCH_SCOPE = array(
        'PRIVATE'     =>  31,
        'PUBLIC'      =>  32
    );

    public static $APPR_NEW = 'NEW';
    public static $APPR_AWAITING = 'AWAITING_FOR_APPROVAL';
    public static $APPR_REVIEWING = 'REVIEWING';
    public static $APPR_APPROVED = 'APPROVED';
    public static $APPR_REVISION = 'REVISION_REQUIRED';

    public static $RESEARCH_APPROVAL_STATUS = array(
        'NEW'                       =>  16,
        'AWAITING_FOR_APPROVAL'     =>  17,
        'REVIEWING'                 =>  18,
        'APPROVED'                  =>  19,
        'REVISION_REQUIRED'         =>  20
    );

    public static $APPROVAL_ACTION_REQUEST = 1;
    public static $APPROVAL_ACTION_REVIEW = 2;
    public static $APPROVAL_ACTION_APPROVE = 4;
    public static $APPROVAL_ACTION_REJECT = 8;

    public static $EMAIL_FORMAT = array(
        'USER COLLABORATION ALERT'  =>  21,
        'PASSWORD RESET'            =>  22
    );

    public static $COMMUNITY_MEMBER_TYPE_ALL = 'ALL';
    public static $COMMUNITY_MEMBER_TYPE_PROFESSOR = 'PROFESSOR';
    public static $COMMUNITY_MEMBER_TYPE_COLLABORATOR = 'COLLABORATOR';
    public static $COMMUNITY_MEMBER_TYPE = array (
        'ALL'           =>  23,
        'PROFESSOR'     =>  24,
        'COLLABORATOR'  =>  25
    );

    public static $COLLABORATION_REQUEST_STATUS_APPROVED = 'APPROVED';
    public static $COLLABORATION_REQUEST_STATUS_PENDING = 'PENDING';
    public static $COLLABORATION_REQUEST_STATUS_REJECTED = 'REJECTED';
    public static  $COLLABORATION_REQUEST_STATUS = array (
        'APPROVED'  =>  26,
        'PENDING'   =>  27,
        'REJECTED'  =>  28
    );

    public static $OBJECT_TYPE_ATTRIBUTE = 'ATTRIBUTE';
    public static $OBJECT_TYPE_SPECIES = 'SPECIES';
    public static $OBJECT_TYPE = array(
        'ATTRIBUTE' => 29,
        'SPECIES' => 30
    );

    /*
     * $RESEARCH_TABS is for UI only. No entry in database required
     */
    public static $RESEARCH_TABS_ALL = 'ALL';
    public static $RESEARCH_TABS_MINE = 'MINE';
    public static $RESEARCH_TABS_PENDING_APPROVAL = 'PENDING_APPROVAL';
    public static $RESEARCH_TABS_COLLABORATION = 'COLLABORATION';
    public static $RESEARCH_TABS = array(
        'ALL'               =>  0,
        'MINE'              =>  1,
        'PENDING_APPROVAL'  =>  2,
        'COLLABORATION'     =>  3
    );

    public static $EXCEL_DATA_TEMPLATES_ATTRIBUTE = 'ATTRIBUTE';
    public static $EXCEL_DATA_TEMPLATES_SPECIES = 'SPECIES';
    public static $EXCEL_DATA_TEMPLATES_LOCATION = 'LOCATION';
    public static $EXCEL_DATA_TEMPLATES_DEPTH = 'DEPTH';
    public static $EXCEL_DATA_TEMPLATES = array(
        'ATTRIBUTE'    =>  1,
        'SPECIES'      =>  2,
        'LOCATION'     =>  3,
        'DEPTH'        =>  4
    );

    public static $NONE = 'NONE';
    public static $SPECIES_UNIT = array(
        'NONE'    =>  11
    );
}
?>
